using MvcSoft2Demo.Models;
using Microsoft.EntityFrameworkCore;

namespace MvcSoft2Demo.Db
{
    public class Soft2DemoDb : DbContext
    {
        private readonly string _conString="server=.;database=Soft2DemoDb;uid=sa;pwd=123456;";
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_conString);
        }


        public DbSet<School> School { get; set; }
        public DbSet<Student> Student { get; set; }
    }
}